/**
 * Tencent is pleased to support the open source community by making Tars available.
 *
 * Copyright (C) 2016THL A29 Limited, a Tencent company. All rights reserved.
 *
 * Licensed under the BSD 3-Clause License (the "License"); you may not use this file except 
 * in compliance with the License. You may obtain a copy of the License at
 *
 * https://opensource.org/licenses/BSD-3-Clause
 *
 * Unless required by applicable law or agreed to in writing, software distributed 
 * under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR 
 * CONDITIONS OF ANY KIND, either express or implied. See the License for the 
 * specific language governing permissions and limitations under the License.
 */

// **********************************************************************
// This file was generated by a TARS parser!
// TARS version 2.1.4.2 by WSRD Tencent.
// Generated from `/usr/local/resin_system.mqq.com/webapps/communication/tars/upload/renjunyi/MTT.tars'
// **********************************************************************

#import "TarsObjectV2.h"
#import "MttEDomainType.h"

#if TARSV2_ENUM_ETOS_AND_STOE_SUPPORTED

@implementation MttEDomainTypeHelper

+ (NSString *)etos:(MttEDomainType)e
{
    switch(e){
        case MttEDomainType_InnerDomain: return @"MttEDomainType_InnerDomain";
        case MttEDomainType_StatUrl: return @"MttEDomainType_StatUrl";
        case MttEDomainType_ReportUrl: return @"MttEDomainType_ReportUrl";
        case MttEDomainType_LbsUrl: return @"MttEDomainType_LbsUrl";
        case MttEDomainType_ReadModel: return @"MttEDomainType_ReadModel";
        case MttEDomainType_NovelModel: return @"MttEDomainType_NovelModel";
        case MttEDomainType_NetDisk: return @"MttEDomainType_NetDisk";
        case MttEDomainType_MsgBox: return @"MttEDomainType_MsgBox";
        case MttEDomainType_BookMarks: return @"MttEDomainType_BookMarks";
        case MttEDomainType_UserCenter: return @"MttEDomainType_UserCenter";
        case MttEDomainType_MicroBlogTextShare: return @"MttEDomainType_MicroBlogTextShare";
        case MttEDomainType_MicroBlogPicShare: return @"MttEDomainType_MicroBlogPicShare";
        case MttEDomainType_ReqBroker: return @"MttEDomainType_ReqBroker";
        case MttEDomainType_WebkitModel: return @"MttEDomainType_WebkitModel";
        case MttEDomainType_ACPortal: return @"MttEDomainType_ACPortal";
        case MttEDomainType_DownLoadAddr: return @"MttEDomainType_DownLoadAddr";
        case MttEDomainType_InfoCenter: return @"MttEDomainType_InfoCenter";
        case MttEDomainType_NovelCenter: return @"MttEDomainType_NovelCenter";
        case MttEDomainType_SMSAddr: return @"MttEDomainType_SMSAddr";
        case MttEDomainType_SafeWhiteList: return @"MttEDomainType_SafeWhiteList";
        case MttEDomainType_SafeReport: return @"MttEDomainType_SafeReport";
        case MttEDomainType_DirectWap: return @"MttEDomainType_DirectWap";
        case MttEDomainType_SaveToNetDisk: return @"MttEDomainType_SaveToNetDisk";
        case MttEDomainType_KjavaMiniHelp: return @"MttEDomainType_KjavaMiniHelp";
        case MttEDomainType_AliPayWhiteList: return @"MttEDomainType_AliPayWhiteList";
        case MttEDomainType_MttModel4ADR: return @"MttEDomainType_MttModel4ADR";
        case MttEDomainType_MttRegexModel4ADR: return @"MttEDomainType_MttRegexModel4ADR";
        case MttEDomainType_WebkitRegexModel4ADR: return @"MttEDomainType_WebkitRegexModel4ADR";
        case MttEDomainType_WebkitModel4ADR: return @"MttEDomainType_WebkitModel4ADR";
        case MttEDomainType_SimpleWindow: return @"MttEDomainType_SimpleWindow";
        case MttEDomainType_SafeWhiteList4IPAD: return @"MttEDomainType_SafeWhiteList4IPAD";
        case MttEDomainType_AdsPush: return @"MttEDomainType_AdsPush";
        case MttEDomainType_MTTModel4Iphone: return @"MttEDomainType_MTTModel4Iphone";
        case MttEDomainType_MTTRegexModel4Iphone: return @"MttEDomainType_MTTRegexModel4Iphone";
        case MttEDomainType_WebkitModel4Iphone: return @"MttEDomainType_WebkitModel4Iphone";
        case MttEDomainType_WebkitRegexModel4Iphone: return @"MttEDomainType_WebkitRegexModel4Iphone";
        case MttEDomainType_ChangeCityUrl: return @"MttEDomainType_ChangeCityUrl";
        case MttEDomainType_NetNoteUrl: return @"MttEDomainType_NetNoteUrl";
        case MttEDomainType_Upload2NetDiskUrl: return @"MttEDomainType_Upload2NetDiskUrl";
        case MttEDomainType_DownloadNetDiskUrl: return @"MttEDomainType_DownloadNetDiskUrl";
        case MttEDomainType_HotWordUrl1: return @"MttEDomainType_HotWordUrl1";
        case MttEDomainType_HotWordUrl2: return @"MttEDomainType_HotWordUrl2";
        case MttEDomainType_NeedQProxy: return @"MttEDomainType_NeedQProxy";
        case MttEDomainType_PerformanceStatUrl: return @"MttEDomainType_PerformanceStatUrl";
        case MttEDomainType_WebkitModelExt25: return @"MttEDomainType_WebkitModelExt25";
        default: return @"";
    }
}

+ (MttEDomainType)stoe:(NSString *)s
{
    if(isTarsEnumStringEqual(s, @"MttEDomainType_InnerDomain")) return MttEDomainType_InnerDomain;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_StatUrl")) return MttEDomainType_StatUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_ReportUrl")) return MttEDomainType_ReportUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_LbsUrl")) return MttEDomainType_LbsUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_ReadModel")) return MttEDomainType_ReadModel;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_NovelModel")) return MttEDomainType_NovelModel;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_NetDisk")) return MttEDomainType_NetDisk;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MsgBox")) return MttEDomainType_MsgBox;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_BookMarks")) return MttEDomainType_BookMarks;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_UserCenter")) return MttEDomainType_UserCenter;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MicroBlogTextShare")) return MttEDomainType_MicroBlogTextShare;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MicroBlogPicShare")) return MttEDomainType_MicroBlogPicShare;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_ReqBroker")) return MttEDomainType_ReqBroker;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_WebkitModel")) return MttEDomainType_WebkitModel;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_ACPortal")) return MttEDomainType_ACPortal;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_DownLoadAddr")) return MttEDomainType_DownLoadAddr;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_InfoCenter")) return MttEDomainType_InfoCenter;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_NovelCenter")) return MttEDomainType_NovelCenter;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_SMSAddr")) return MttEDomainType_SMSAddr;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_SafeWhiteList")) return MttEDomainType_SafeWhiteList;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_SafeReport")) return MttEDomainType_SafeReport;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_DirectWap")) return MttEDomainType_DirectWap;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_SaveToNetDisk")) return MttEDomainType_SaveToNetDisk;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_KjavaMiniHelp")) return MttEDomainType_KjavaMiniHelp;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_AliPayWhiteList")) return MttEDomainType_AliPayWhiteList;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MttModel4ADR")) return MttEDomainType_MttModel4ADR;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MttRegexModel4ADR")) return MttEDomainType_MttRegexModel4ADR;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_WebkitRegexModel4ADR")) return MttEDomainType_WebkitRegexModel4ADR;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_WebkitModel4ADR")) return MttEDomainType_WebkitModel4ADR;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_SimpleWindow")) return MttEDomainType_SimpleWindow;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_SafeWhiteList4IPAD")) return MttEDomainType_SafeWhiteList4IPAD;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_AdsPush")) return MttEDomainType_AdsPush;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MTTModel4Iphone")) return MttEDomainType_MTTModel4Iphone;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_MTTRegexModel4Iphone")) return MttEDomainType_MTTRegexModel4Iphone;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_WebkitModel4Iphone")) return MttEDomainType_WebkitModel4Iphone;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_WebkitRegexModel4Iphone")) return MttEDomainType_WebkitRegexModel4Iphone;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_ChangeCityUrl")) return MttEDomainType_ChangeCityUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_NetNoteUrl")) return MttEDomainType_NetNoteUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_Upload2NetDiskUrl")) return MttEDomainType_Upload2NetDiskUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_DownloadNetDiskUrl")) return MttEDomainType_DownloadNetDiskUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_HotWordUrl1")) return MttEDomainType_HotWordUrl1;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_HotWordUrl2")) return MttEDomainType_HotWordUrl2;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_NeedQProxy")) return MttEDomainType_NeedQProxy;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_PerformanceStatUrl")) return MttEDomainType_PerformanceStatUrl;
    if(isTarsEnumStringEqual(s, @"MttEDomainType_WebkitModelExt25")) return MttEDomainType_WebkitModelExt25;
    return NSIntegerMin;
}

@end

#endif
